package cn.easyar.samples.helloarqrcode;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;

import cn.easyar.samples.helloarqrcode.remote.SelectListActivity;

public class LauncherActivity extends AppCompatActivity {
    Context context;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launcher);
        context = this;
        goIndex();
    }

    private void goIndex() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                //延迟两秒钟执行
                startActivity(new Intent(context, RouteActivity.class));
                finish();
            }
        }, 1000);
    }

}
